home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
.net 2002 March
/
DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin
/
pc
/
PC Software
/
free_browsing
/
DavesQckSearchDbar3-14
/
dqsd.exe
/
searches
/
cddb.xml
< prev
next >
Wrap
Text File
|
2002-08-30
|
2KB
|
65 lines
<search function="cddb">
<name>Gracenote CDDB</name>
<description>
Search CDDB by artist, album, song, or a combination of the three. Searches by artist by default.<br/>
<div class="helpboxDescLabels">Switches:</div>
<table class="helpboxDescTable">
<tr><td>/artist</td><td> - </td><td>Search for artists.</td></tr>
<tr><td>/album</td><td> - </td><td>Search for albums.</td></tr>
<tr><td>/song</td><td> - </td><td>Search for songs.</td></tr>
</table>
<div class="helpboxDescLabels">Examples:</div>
<table class="helpboxDescTable">
<tr><td>cddb Blender</td></tr>
<tr><td>cddb Let It Be /artist /title</td></tr>
</table>
</description>
<category>Entertainment</category>
<link>http://www.cddb.com/</link>
<contributor>Peter Risser, Ryan Edwards</contributor>
<form name="cddbf"
action="http://www.cddb.com/php/search2.php3">
<input type="hidden" name="f"/>
<input type="hidden" name="q"/>
</form>
<script><![CDATA[
function cddb(q)
{
var parsedargs = parseArgs(q, "artist, album, song");
if( nullArgs("cddb", q) )
return false;
else if( parsedargs.switches.length > 0 )
{
var args = "";
for( var i = 0; i < parsedargs.switches.length; i++ )
{
switch( parsedargs.switches[i].name )
{
case "artist": args += "artist"; break;
case "album": args += "disc"; break;
case "song": args += "track"; break;
}
args += (args ? " " : "");
}
document.cddbf.q.value = parsedargs.q;
document.cddbf.f.value = args;
submitForm(cddbf);
}
else
{
document.cddbf.q.value = parsedargs.q;
document.cddbf.f.value = "artist";
submitForm(cddbf);
}
}
]]></script>
<copyright>
Copyright (c) 2002 David Bau
Distributed under the terms of the
GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
</copyright>
</search>